package com.yubest.demo.handler;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author hweiyu
 * @Description
 * @Date 2021/8/12 10:53
 */
@Data
@Accessors(chain = true)
public class HandlerBuilder {

    private String path;

    public Handler getHandler() {
        return FileType.of(getPath()).getHandler();
    }
}
